package com.nwcl.ysx.dao;


import com.nwcl.ysx.entity.RestaurantRoomSubscribe;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author lgq
 * @description 针对表【restaurant_room_subscribe(餐厅包房预约表)】的数据库操作Mapper
 * @createDate 2023-05-26 10:31:35
 * @Entity ./com/nwcl/ysx/entity.RestaurantRoomSubscribe
 */
@Repository
public interface RestaurantRoomSubscribeDao {

    List<RestaurantRoomSubscribe> listTimeRangeOverlapping(@Param("restaurantId") Integer restaurantId, @Param("roomId") Integer roomId, @Param("startTime") String startTime, @Param("endTime") String endTime);

    void save(RestaurantRoomSubscribe subscribe);

    RestaurantRoomSubscribe getBySubscribeId(@Param("subscribeId") Integer subscribeId);
}




